/*
 * @Author: xiaosihan
 * @Date: 2024-12-02 00:51:02
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-12-02 01:11:05
 */

import designEditor from '@/editorComponent/designEditor';
import { observable, configure } from 'mobx';
configure({ enforceActions: 'never' });

const nameNumStore = observable(
  {
    //步骤 123
    step: 1,
    setStep(step: number) {
      this.step = step;

      if (step === 3) {
        designEditor.fabricCanvas.discardActiveObject();
      }
    },
  },
  {},
  { deep: false },
);
export default nameNumStore;
